package com.umgsai.thread.thread01;

public class MyThread2 extends Thread {
	private int i;
	public MyThread2(int i) {
		super();
		this.i = i;
	}
	
	@Override
	public void run() {
		System.out.println(i);
	}
	
	public static void main(String[] args) {
		MyThread2 t1 = new MyThread2(1);
		MyThread2 t2 = new MyThread2(2);
		MyThread2 t3 = new MyThread2(3);
		MyThread2 t4 = new MyThread2(4);
		MyThread2 t5 = new MyThread2(5);
		
		t1.start();
		t2.start();
		t3.start();
		t4.start();
		t5.start();
	}
}
